#! /bin/bash
# author: qingdalf
# date: 2021/04/02
# events: cutting nginx log by everyday 
mv /srv/nginx/logs/access.log  /srv/nginx/logs/access.log-$(date +%F)
/srv/nginx/sbin/nginx -s reopen